<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="Register" Title="Untitled Page" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <h1>
        Register</h1>
    
        <table visible="false" id="UserInfoTable" style="width: 390px; background-color:#EFF3FB" >
        
            <tr>
                <th align="center" colspan="2" style="background-color: #507CD1; font-weight: bold; 
                            border-color: #EFF3FB; border-style: solid; color:White"  >
                Your Information
                </th>
            </tr>
            <tr>
                <td align="center" colspan="2" style="font-weight: bold">
                </td>
            </tr>
            <tr>
                                <td align="right" style="width: 203px">
                                    <asp:Label ID="lblfirstName" runat="server" Text="First Name:"></asp:Label></td>
                                <td style="width: 185px">
                                    <asp:TextBox ID="txtboxFirstName" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvFirstName" runat="server" ControlToValidate="txtboxFirstName"
                                        ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator></td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 203px">
                                    <asp:Label ID="lblLastName" runat="server" Text="Last Name:"></asp:Label></td>
                                <td style="width: 185px">
                                    <asp:TextBox ID="txtboxLastName" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvLastName" runat="server" ControlToValidate="txtboxLastName"
                                        ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator></td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 203px">
                                    <asp:Label ID="lblAddress" runat="server" Text="Address:"></asp:Label></td>
                                <td style="width: 185px">
                                    <asp:TextBox ID="txtboxAddress" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvAddress" runat="server" ControlToValidate="txtboxAddress"
                                        ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator></td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 203px">
                                    <asp:Label ID="lblCity" runat="server" Text="City:"></asp:Label></td>
                                <td style="width: 185px">
                                    <asp:TextBox ID="txtboxCity" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvCity" runat="server" ControlToValidate="txtboxCity"
                                        ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator></td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 203px">
                                    <asp:Label ID="lblState" runat="server" Text="State:"></asp:Label></td>
                                <td style="width: 185px">
                                    &nbsp;<asp:DropDownList ID="ddlStates" runat="server" Width="60px">
                                    </asp:DropDownList>
                                    
                                    <asp:Label ID="Label3" runat="server" Text="Zip:"></asp:Label>
                                    <asp:TextBox ID="txtboxZip" runat="server" MaxLength="5" Width="49px" ></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvZip" runat="server" ControlToValidate="txtboxZip"
                                        ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator></td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 203px">
                                    <asp:Label ID="lblPhone" runat="server" Text="Phone Number:"></asp:Label></td>
                                <td style="width: 185px">
                                    <asp:TextBox ID="txtboxPhone" runat="server" MaxLength="14" Width="147px" ></asp:TextBox>
                                    
                                    <asp:RegularExpressionValidator ID="revPhone" runat="server" ErrorMessage="RegularExpressionValidator"
                                        ValidationExpression="((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4}" ControlToValidate="txtboxPhone">*</asp:RegularExpressionValidator><br />
                                    <span style="font-size: 1em">xxx-xxx-xxxx</span></td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 203px">
                                    <asp:Label ID="lblEmail" runat="server" Text="Email:"></asp:Label>&nbsp;</td>
                                <td style="width: 185px">
                                    <asp:TextBox ID="txtboxEmail" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvEmail" runat="server" ControlToValidate="txtboxEmail"
                                        ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator></td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 203px">
                                    <asp:Label ID="lblSSN" runat="server" Text="Social Sec. Number:"></asp:Label>&nbsp;</td>
                                <td style="width: 185px">
                                    <asp:TextBox ID="txtboxSSN" runat="server" MaxLength="11" Width="149px"></asp:TextBox>
                                    <asp:RegularExpressionValidator ID="revSSN" runat="server" ControlToValidate="txtboxSSN"
                                        ErrorMessage="RegularExpressionValidator" ValidationExpression="\d{3}-\d{2}-\d{4}">*</asp:RegularExpressionValidator><br />
                                    <span style="font-size: 1em">xxx-xx-xxxx</span></td>
                            </tr>
            <tr>
                <td align="center" colspan="2" style="height: 30px" >
    <asp:RadioButton ID="rbAdmin" runat="server" GroupName="GroupRole" Text="Administrator"
        Visible="False" />&nbsp; &nbsp;&nbsp;
    <asp:RadioButton ID="rbInstructor" runat="server" GroupName="GroupRole" Text="Instructor"
        Visible="False" />
    &nbsp; &nbsp;&nbsp; &nbsp;
    <asp:RadioButton ID="rbStudent" runat="server" GroupName="GroupRole" Text="Student"
        Visible="False" OnCheckedChanged="rbStudent_CheckedChanged" /></td>
                
            </tr>
            <tr>
                <td align="right" >
                    <asp:Label ID="lblOffice" runat="server" Text="Office Number:"></asp:Label></td>
                <td>
                    <asp:TextBox ID="txtboxOffice" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvOffice" runat="server" ControlToValidate="txtboxOffice"
                        ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td align="center" colspan="1" style="width: 203px; height: 30px">
                    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                    <asp:Button ID="btnContinue" runat="server" OnClick="btnContinue_Click" Text="Continue" /></td>
                <td align="center" colspan="2" style="width: 245px; height: 30px">
                    <asp:Button ID="btnCancel" runat="server" OnClick="btnCancel_Click" Text="Cancel" /></td>
            </tr>
           
        </table>
    
    
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <br />
    <br />
    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
    &nbsp;<asp:CreateUserWizard  ID="CreateUser" runat="server" BackColor="#EFF3FB" BorderColor="#B5C7DE"
        BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="Medium" Height="101px" ContinueDestinationPageUrl="~/Default.aspx" Width="369px" OnCreatingUser="CreateUser_CreatingUser" Visible="False" >
        <SideBarStyle BackColor="#507CD1" Font-Size="0.9em" VerticalAlign="Top" />
        <SideBarButtonStyle BackColor="#507CD1" Font-Names="Verdana" ForeColor="White" />
        <ContinueButtonStyle BackColor="White" BorderColor="#507CD1" BorderStyle="Solid"
            BorderWidth="1px" Font-Names="Verdana" ForeColor="#284E98" />
        <NavigationButtonStyle BackColor="White" BorderColor="#507CD1" BorderStyle="Solid"
            BorderWidth="1px" Font-Names="Verdana" ForeColor="#284E98" />
        <HeaderStyle BackColor="#284E98" BorderColor="#EFF3FB" BorderStyle="Solid" BorderWidth="2px"
            Font-Bold="True" Font-Size="0.9em" ForeColor="White" HorizontalAlign="Center" />
        <CreateUserButtonStyle BackColor="White" BorderColor="#507CD1" BorderStyle="Solid"
            BorderWidth="1px" Font-Names="Verdana" ForeColor="#284E98" />
        <TitleTextStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <StepStyle Font-Size="0.8em" />
        <WizardSteps>
            <asp:CreateUserWizardStep runat="server">
            </asp:CreateUserWizardStep>
            <asp:CompleteWizardStep runat="server">
            </asp:CompleteWizardStep>
        </WizardSteps>
    </asp:CreateUserWizard>
    <br />
    <br />
    
</asp:Content>

